Move bitmap functions to the shared rtl library.