install script reworked for windows/linux compatibility

    Now the flags options are saved in .memlib_build_flags and
    .memlib_compile_flags. This will make the possibility to add options
    easier (just adding a line to these files between touching the script)
    Need to test the batch files on windows